package com.Singleton;

public class Outer {
	static {
		System.out.println("load outer class...");
	}
      
	// 静态内部类
	static class StaticInner {
		static {
			System.out.println("load static inner class...");
		}
        static int a=10;
		static void staticInnerMethod() {
			System.out.println("static inner method...");
		}
	}

	public static void main(String[] args) {
		Outer outer = new Outer(); // 此刻其内部类是否也会被加载？
		System.out.println("===========分割线===========");
		System.out.println(Outer.StaticInner.a);
		 // 调用内部类的静态方法
	}

}
